@ECHO OFF

REM Copyright (c) 2010 Christopher E. S. King (http:REM chriskingconsulting.com)
REM 
REM Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files 
REM  (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, 
REM  publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do 
REM  so, subject to the following conditions:
REM 
REM  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
REM 
REM  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
REM  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE 
REM  FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
REM  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

SET TFS_USERNAME=%1
SET TFS_PASSWORD=%2

PUSHD %~dp0
SET "PATH=%CD%;%PATH%"

IF "%PROGRAMFILES(X86)%" EQU "" (
    SET "PATH=%PATH%;%PROGRAMFILES%\Microsoft Visual Studio 11.0\Common7\IDE\"
) ELSE (
    SET "PATH=%PATH%;%PROGRAMFILES(X86)%\Microsoft Visual Studio 11.0\Common7\IDE\"
)

PUSHD ..
SET KINGC_ROOT=%CD%\
SET KINGC_DEV=%KINGC_ROOT%dev\
SET KINGC_ENV=%KINGC_ROOT%env\
SET KINGC_SRC=%KINGC_ROOT%dev\src\
SET KINGC_TEST=%KINGC_ROOT%test\src\
SET KINGC_PUBLIC=%KINGC_ROOT%public\

CALL aliases.bat
SET "PROMPT=$P $G "
COLOR 1f
PUSHD %KINGC_SRC%

